Release 10.1A: OpenEdge Data Management:
DataServer for ORACLE
Index repositioning
The DataServer supports index repositioning, which allows you to scroll through a query result set. You must define the query as
SCROLLINGand open the query with theINDEXED-REPOSITIONoption as the following syntax examples show:
The DataServer enforces the ordering of the query according to the index that the Progress compiler chooses when processing the query. If the index is not unique, the table that you query must have a unique record identifier so that the DataServer can ensure that duplicates order predictably. The record identifier that the DataServer uses is the same one that supports the Progress 4GL
ROWIDfunction, that is, aPROGRESS_RECIDcolumn, the nativeROWID, or a unique integer index. Performing an index reposition might cause the DataServer to issue a new query to ORACLE. This new result set might contain rows that were added or changed since the original query was ordered. Note that by default, you can only scroll through the result set returned by the query. That is, you cannot scroll beyond the boundaries of the result set returned by the query. You cannot scroll through the rest of the database. If you wish to scroll outside the boundaries of the result set, you must add the-Dsrvsrv-get-prevswitch. This indicates to the DataServer, that it should generate new SQL to satisfy aGETPREVfollowing a reposition which would have otherwise been outside the result set.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |